package entities;

import java.util.Comparator;

public class OwnerAssociationComparator implements Comparator<OwnerAssociation> {

	@Override
	public int compare(OwnerAssociation o1, OwnerAssociation o2) {
		int c = o1.getPersonCode().compareTo(o2.getPersonCode());
		if(c == 0) {
			return o1.getSheetCode().compareTo(o2.getSheetCode());
		} else {
			return c;
		}
	}

}
